import request from '@/utils/request'
// 获取权限组
export function getPermissionsGroup(data) {
    return request({
        url: '/permissions',
        method: 'GET',
        params: data
    })
}
// 权限组修改
export function changePermissionsGroup(data) {
    return request({
        url: '/permissions/' + data.id,
        method: 'PUT',
        data
    })
}
// 权限组删除
export function delPermissionsGroup(id) {
    return request({
        url: '/permissions/' + id,
        method: 'DELETE'
    })
}
// 权限组添加
export function addPermissionsGroup(data) {
    return request({
        url: '/permissions',
        method: 'POST',
        data
    })
}
// 权限组简单列表
export function easyPermissionsGroup() {
    return request({
        url: '/permissions/simple',
        method: 'GET'

    })
}
// 权限组详情
export function detailedPermissionsGroup(id) {
    return request({
        url: '/permissions/' + id,
        method: 'GET'
    })
}